package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.shopkeeper.enums.ShopkeeperPointsLogType;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 店主阳光值记录
 * </p>
 *
 * @author ken
 * @since 2023-02-12
 */
@Getter
@Setter
@TableName("tb_shopkeeper_points_log")
public class ShopkeeperPointsLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 店主id
     */
    @TableField("shopkeeper_id")
    private Long shopkeeperId;

    /**
     * 变动数量
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 当时余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 变动类型
     */
    @TableField("change_type")
    private ShopkeeperPointsLogType changeType;

    /**
     * 关联id
     */
    @TableField("associate")
    private String associate;

    /**
     * 关联会员id
     */
    @TableField("associate_member_id")
    private Long associateMemberId;


}
